<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">

  <h:body>

    <ui:insert name="content" >
      <ui:include src="template.xhtml" />
    </ui:insert>

    <!-- container -->
    <div id="content">
      <div class="container">
        <div class="row">
          <div class="span12">

            <!-- botoes -->
            <h:form>
              <div id="page-title" class="clearfix">
                <p:panelGrid columns="2" styleClass="semBorda">  
                  <h:commandButton class="btn btn-secondary btn-regular"
                                   style="width: 80px"
                                   value="Salvar" 
                                   action="#{tipoRequerimentoBean.salvar}"/>
                  <h:commandButton class="btn btn-secondary btn-regular"
                                   style="width: 80px"
                                   value="Cancelar"  
                                   action="#{tipoRequerimentoBean.cancelar}"/>
                </p:panelGrid>  
              </div>
              <!-- /botoes -->

              <!-- Campos de edição -->
              <div id="page-title" class="clearfix">
                <h4>Dados do Tipo de Requerimento</h4>
                <p></p>
                <p:messages id="msgs"/> 

                <h:panelGrid columns="3">  
                  <h:outputLabel for="codigocliente" value="Código do cliente:*" />  
                  <p:inputText id="codigocliente" 
                               value="#{tipoRequerimentoBean.tipoRequerimento.cdTipoRequerimento}" 
                               required="true" 
                               label="Código do cliente"
                               maxlength="10"/>  
                  <p:message for="codigocliente" display="icon"/> 

                  <h:outputLabel for="descricao" value="Descrição:*" />  
                  <p:inputText id="descricao" 
                               value="#{tipoRequerimentoBean.tipoRequerimento.dsTipoRequerimento}" 
                               required="true" 
                               label="Descrição"
                               maxlength="50"
                               size="50"/>  
                  <p:message for="descricao" display="icon"/> 
                </h:panelGrid>  
              </div>
              <!-- /Campos de edição -->

            </h:form>
          </div>
        </div>
      </div>
    </div>
  </h:body>
</html>
